<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        figcaption{
            text-align: center;
            margin-top: 20px;
            margin-bottom: 30px;
        }

        .play{
            text-align: center;
            width: 720px;
            height: 360px;
            margin: 100px auto;
            background: black;
            position: relative;
        }

        video{
            height: 100%;
            margin: 0 auto;
        }

        .ctol{
            position: absolute;
            left: 10px;
            bottom: 5px;
            border-radius: 5px;
            width: 700px;
            height: 30px;
            background-color: rgba(255,255,0,0.3);;
        }

        .sAndP,.all{
            position: absolute;
            width: 25px;
            height: 25px;
            /*background: lightblue;*/
            font-size:18px;
            text-align: center;
            line-height: 25px;
            color:yellow;
            cursor: pointer;
        }

        .sAndP{
            left: 10px;
            top: 2px;
        }

        .all{
            right: 10px;
            top: 2px;
        }

        .progress{
            width: 450px;
            height: 20px;
            position: absolute;
            background: lightgray;
            border-radius: 5px;
            overflow: hidden;
            left: 44px;
            top: 5px;
        }

        .iTime,.tTime{
            font: 12px 微软雅黑;
        }

        .time{
            position: absolute;
            height: 20px;
            right: 40px;
            top: 5px;
        }

        .currPro{
            background: white;
        }

    </style>
</head>
<body>
    <figure>
        <figcaption>视频播放界面</figcaption>
        <div class="play">
            <video src="movie/fun.mp4"></video>
            <div class="ctol">
                <!--开始暂停按钮-->
                <span class="sAndP icon-play"></span>
                <!--进度条-->
                <div class="progress">
                    <div class="currPro"></div>
                </div>
                <!--播放时间-->
                <div class="time">
                    <span class="iTime">00:00:00</span>/
                    <span class="tTime">00:00:00</span>
                </div>
                <!--全屏-->
                <span class="all icon-resize-full"></span>
            </div>
        </div>
    </figure>

    <script>
        var sAndP = document.querySelector(".sAndP");
        sAndP.onclick = function () {
            if(sAndP.paused) {
                sAndP.play();
                this.classList.remove('icon-play');
                this.classList.add('icon-pause');
            }else {
                sAndP.pause();
                this.classList.remove('icon-pause');
                this.classList.add('icon-play');
            }
        };
    </script>
</body>
</html>